package testing;

import gestures.tapGestures.TapGesture;
import services.subscribers.GestureEventArgs;
import services.subscribers.tapGestures.*;

public class TapGestureListener implements ITapGestureListener {


	public void actionPerformed(Object sender, GestureEventArgs e) {
		System.out.println("got it");
        if (e.getGesture() != null && e.getGesture().getClass().equals(TapGesture.class)) {
			TapGesture testTap = (TapGesture) e.getGesture();
			System.out.println("Hello world from Gesture as TapGesture!");
			System.out.println(testTap.toDebug());
		} else {
			System.out.println("Hello world from Gesture!");
		}
	}

}
